package com.wj.console.bean.welfareshop.result;

import java.io.Serializable;
import java.math.BigDecimal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**   
 * 类名称：OrderDetail
 * 类描述 ：订单详情请求结果集
 * 创建人: Administrator  
 * 创建时间：2017-4-26 下午4:21:23  
 * 修改人：
 * 修改时间：
 * 修改备注：
 * 版本： V1.0
 */
public class OrderDetail implements Serializable{
	private static final long serialVersionUID = 1L;
	private String thirdOrder;//第三方订单编号
	private String key;//系统订单编号
	private String status;//订单状态, waiting_pay:等待付款,  waiting_shipment:等待发货, waiting_confirmed:等待确认收货, 
						  //completed:订单已完成, canceld:订单作废, cancled_before_pay:订单关闭, after_sale_service:售后服务中
	private BigDecimal orderTotalPrice;//订单总金额
	private BigDecimal orderProductPrice;//产品价格
	private BigDecimal orderShipmentFee;//快递费用(备用扩展字段, 展示无用)
	private String receiverName;//收货人姓名
	private Date createTime;//订单创建时间
	
	private Integer province;//省份
	private Integer city;//市
	private Integer county;//区/县
	private Integer town;//乡/镇
	private String address;//详细地址
	private String mobile;//收货人手机号码
	private String email;//收货人邮箱
	private String remark;//备注
	
	private List<OrderEntry> orderEntrys;//订单产品数据
	private List<OrderDetail>childOrders; //子订单详细信息
	
	private String third_order;//第三方订单编号
	private BigDecimal order_product_price;//产品价格
	private BigDecimal order_shipment_fee;//快递费用(备用扩展字段, 展示无用)
	private BigDecimal order_total_price;//订单总金额
	private String receiver_name;//收货人姓名
	private String create_time;//订单创建时间
	private List<OrderEntry> order_entry;//订单产品数据
	private List<OrderDetail>child_orders; //子订单详细信息
	
	
	public String getThirdOrder() {
		return thirdOrder;
	}
	public void setThirdOrder(String thirdOrder) {
		this.thirdOrder = thirdOrder;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public BigDecimal getOrderTotalPrice() {
		return orderTotalPrice;
	}
	public void setOrderTotalPrice(BigDecimal orderTotalPrice) {
		this.orderTotalPrice = orderTotalPrice;
	}
	public BigDecimal getOrderProductPrice() {
		return orderProductPrice;
	}
	public void setOrderProductPrice(BigDecimal orderProductPrice) {
		this.orderProductPrice = orderProductPrice;
	}
	public BigDecimal getOrderShipmentFee() {
		return orderShipmentFee;
	}
	public void setOrderShipmentFee(BigDecimal orderShipmentFee) {
		this.orderShipmentFee = orderShipmentFee;
	}
	public String getReceiverName() {
		return receiverName;
	}
	public void setReceiverName(String receiverName) {
		this.receiverName = receiverName;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Integer getProvince() {
		return province;
	}
	public void setProvince(Integer province) {
		this.province = province;
	}
	public Integer getCity() {
		return city;
	}
	public void setCity(Integer city) {
		this.city = city;
	}
	public Integer getCounty() {
		return county;
	}
	public void setCounty(Integer county) {
		this.county = county;
	}
	public Integer getTown() {
		return town;
	}
	public void setTown(Integer town) {
		this.town = town;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getThird_order() {
		return third_order;
	}
	public void setThird_order(String third_order) {
		this.third_order = third_order;
		this.thirdOrder = third_order;
	}
	public BigDecimal getOrder_total_price() {
		return order_total_price;
	}
	public void setOrder_total_price(BigDecimal order_total_price) {
		this.order_total_price = order_total_price;
		this.orderTotalPrice = order_total_price;
	}
	public BigDecimal getOrder_product_price() {
		return order_product_price;
	}
	public void setOrder_product_price(BigDecimal order_product_price) {
		this.order_product_price = order_product_price;
		this.orderProductPrice = order_product_price;
	}
	public BigDecimal getOrder_shipment_fee() {
		return order_shipment_fee;
	}
	public void setOrder_shipment_fee(BigDecimal order_shipment_fee) {
		this.order_shipment_fee = order_shipment_fee;
		this.orderShipmentFee = order_shipment_fee;
	}
	public String getReceiver_name() {
		return receiver_name;
	}
	public void setReceiver_name(String receiver_name) {
		this.receiver_name = receiver_name;
		this.receiverName = receiver_name;
	}
	public String getCreate_time() {
		return create_time;
	}
	public void setCreate_time(String create_time) {
		this.create_time = create_time;
		try {
			this.createTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(create_time);
		} catch (ParseException e) {
			e.printStackTrace();
		}
	}
	public List<OrderEntry> getOrder_entry() {
		return order_entry;
	}
	public void setOrder_entry(List<OrderEntry> order_entry) {
		this.order_entry = order_entry;
		this.orderEntrys = order_entry;
	}
	public List<OrderEntry> getOrderEntrys() {
		return orderEntrys;
	}
	public void setOrderEntrys(List<OrderEntry> orderEntrys) {
		this.orderEntrys = orderEntrys;
	}
	
	public List<OrderDetail> getChild_orders() {
		return child_orders;
	}
	public void setChild_orders(List<OrderDetail> child_orders) {
		this.child_orders = child_orders;
		this.childOrders = child_orders;
	}
	public List<OrderDetail> getChildOrders() {
		return childOrders;
	}
	public void setChildOrders(List<OrderDetail> childOrders) {
		this.childOrders = childOrders;
	}
	
	@Override
	public String toString() {
		return "OrderDetail [thirdOrder=" + thirdOrder + ", key=" + key
				+ ", status=" + status + ", orderTotalPrice=" + orderTotalPrice
				+ ", orderProductPrice=" + orderProductPrice
				+ ", orderShipmentFee=" + orderShipmentFee + ", receiverName="
				+ receiverName + ", createTime=" + createTime + ", province="
				+ province + ", city=" + city + ", county=" + county
				+ ", town=" + town + ", address=" + address + ", mobile="
				+ mobile + ", email=" + email + ", remark=" + remark
				+ ", orderEntrys=" + orderEntrys + ", childOrders="
				+ childOrders + "]";
	}
}
